home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: localtime
- Date: Wed, 07 Feb 96 14:04:30 GMT
- Organization: none
- Message-ID: <823701870snz@genesis.demon.co.uk>
- References: <61VnNPt6nTB@softsite.co.at> <4eqr64$ofs@linus.mitre.org>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4eqr64$ofs@linus.mitre.org> jrv@mitre.org "Jim Van Zandt" writes:
-
- >wsog@softsite.co.at (Walter Sommergruber) writes:
- >>Can I assume "tm_year+1900 = real year" will work also after the
- >>year 2000 ?
- >
- >Yes! It should work until at least 2034 (2^31 seconds after 1/1/1970).
-
- In some sense it should work up to year 34667. That a time_t represents
- time in seconds after 1/1/1970 is just a convention on your particular
- platform. Other platforms may use different representation (e.g. holding
- time values in long doubles). The C language only requires that time_t is
- an arithmetic (integer or floating point) type.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-